package com.shine.icis.hbean;

import java.io.Serializable;

public class DataCheckDef implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3662405149335236166L;
	
	public static char ON = '1';//启用
	public static char OF = '0';//禁用
	public static char DISABLE = 'N';//不可用
	public static char ENABLE = 'Y';//0与1的并集，数据库并无此值
	
	private int defId;
	private String checkName;//监控名称
	private String note;//监控说明
	private String checkTable;//结果表名
	private String formula;//结果表中相关字段名运算规则
	private String formulaDesc;//公式描述
	private char enableFlag;//是否启用
	public int getDefId() {
		return defId;
	}
	public void setDefId(int defId) {
		this.defId = defId;
	}
	public String getCheckName() {
		return checkName;
	}
	public void setCheckName(String checkName) {
		this.checkName = checkName;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public String getCheckTable() {
		return checkTable;
	}
	public void setCheckTable(String checkTable) {
		this.checkTable = checkTable;
	}
	public String getFormula() {
		return formula;
	}
	public void setFormula(String formula) {
		this.formula = formula;
	}
	public String getFormulaDesc() {
		return formulaDesc;
	}
	public void setFormulaDesc(String formulaDesc) {
		this.formulaDesc = formulaDesc;
	}
	public char getEnableFlag() {
		return enableFlag;
	}
	public void setEnableFlag(char enableFlag) {
		this.enableFlag = enableFlag;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + defId;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final DataCheckDef other = (DataCheckDef) obj;
		if (defId != other.defId)
			return false;
		return true;
	}
	
}
